<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;  charset=utf-8" />
<meta name="author" content="lily" />
<meta name="copyright" content="SINA 1996-2010" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title> - 新浪河南 - 用户中心</title>

<script src ="/js/jquery/jquery.js"></script>

<body>

	<input type="text" name="user_name" id="user_name" value="">
	<input type="password" name="password" id="password">
	<input type="button" id="btnSubmit" value="提交">
</body>
</html>

<script type="text/javascript" language="javascript">

$("#btnSubmit").bind("click",function(){
	$.ajax({
		url:"/user/login_submit_post.php",
		type:"post",
		data:"user_name="+$("#user_name").val()+"&password="+$("#password").val(),
		dataType:"json",
    complete:function(xhr,status){
      var result = eval("("+(xhr.responseText)+")");
			
			if(result.error == "0"){
				alert("success")    
				location.reload();               
			}else{
				var errmsg = result.errmsg;
				alert(errmsg)
			}

			widget = null;
		}
	});
});
</script>